<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="UpdateKB.aspx.vb" Inherits="WebServiceTester.UpdateKB" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Update SOLAR Knowledge Base</title>
     <script type="text/javascript">
         function fUpdate()
    {
      __doPostBack('MainTab$TabUpdate$updpnlView','Update|');        
    
    }
    
    
     function fGetKBDetails()
    {
      __doPostBack('MainTab$TabUpdate$updpnlUpdate','View|');        
    
    }
    
    </script>
     
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    
    </div>
        <cc1:TabContainer ID="MainTab" runat="server" ActiveTabIndex="0">
            <cc1:TabPanel ID="TabView" runat="server" HeaderText="TabView">
                <HeaderTemplate>
                    View
                </HeaderTemplate>
                <ContentTemplate>
                    <input id="Button1" type="button" value="View KB" onclick="fGetKBDetails();" /><br />
                    &nbsp;<asp:Panel ID="Panel1" runat="server" Height="600px" ScrollBars="Both" Width="95%">
                    <asp:UpdatePanel ID="updpnlView" runat="server">
                        <ContentTemplate>
                    <asp:GridView ID="gridKbDetails" runat="server">
                    </asp:GridView>
                            <asp:TextBox ID="txtErrorView" runat="server" Height="154px" TextMode="MultiLine" Visible="False"
                                Width="425px"></asp:TextBox>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    </asp:Panel>
                    &nbsp;<br />
                    &nbsp;
                </ContentTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="TabUpdate" runat="server" HeaderText="TabUpdate">
                <ContentTemplate>
                    <asp:UpdatePanel ID="updpnlUpdate" runat="server">
                        <ContentTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Error Type"></asp:Label><br />
                            <asp:TextBox ID="txtErrorType" runat="server" Height="20px" Width="233px"></asp:TextBox><br />
                            <br />
                            <asp:Label ID="Label2" runat="server" Text="Error Description"></asp:Label><br />
                            <asp:TextBox ID="txtErrorDescription" runat="server" Height="79px" Width="534px"></asp:TextBox><br />
                            <br />
                            <asp:Label ID="Label" runat="server" Text="Error Information" Width="145px"></asp:Label><br />
                            <asp:TextBox ID="txtErrorInformation" runat="server" Height="79px" Width="534px" TextMode="MultiLine"></asp:TextBox><br />
                            <br />
                            <asp:Label ID="Label3" runat="server" Text="Resolution"></asp:Label><br />
                            <asp:TextBox ID="txtResolution" runat="server" Height="79px" Width="534px" TextMode="MultiLine"></asp:TextBox><br />
                            <br />
                            <asp:Label ID="Label4" runat="server" Text="Root Cause"></asp:Label><br />
                            <asp:TextBox ID="txtRootCause" runat="server" Height="79px" Width="534px" TextMode="MultiLine"></asp:TextBox>
                            <asp:TextBox ID="txtError" runat="server" Height="79px" TextMode="MultiLine" Visible="False"
                                Width="534px"></asp:TextBox>&nbsp;<br />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <input id="btnUpdate" type="button" value="Update" onclick="fUpdate();" />
                </ContentTemplate>
                <HeaderTemplate>
                    Update
                </HeaderTemplate>
            </cc1:TabPanel>
        </cc1:TabContainer>
    </form>
</body>
</html>
